/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import entity.Pet;
import entity.PetOwner;

/**
 *
 * @author Administrator
 */
public interface AccountDao {

    /**
     * 更新账目表信息(宠物主人收购)
     *
     * @param pet 宠物
     * @param po 宠物主人
     * @return 1为成功，0为失败
     */
    public int update(Pet pet, PetOwner po);

    /**
     * 更新账目表信息（宠物主人出售）
     *
     * @param pet 宠物
     * @param ownerId 主人ID
     * @param storeId 宠物商店ID
     * @return 1为成功，0为失败
     */
    public int updateSell(Pet pet, int ownerId, int storeId);
}
